<html><head><title>Specify Random Coefficients In A GAMLSS Formula</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="Rchm.css">
</head>
<body>

<table width="100%"><tr><td>rc(gamlss)</td><td align="right">R Documentation</td></tr></table><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="keyword" value="R:   rc">
<param name="keyword" value=" Specify Random Coefficients In A GAMLSS Formula">
</object>


<h2>Specify Random Coefficients In A GAMLSS Formula</h2>


<h3>Description</h3>

<p>
Fits Random Coefficients In A GAMLSS Model.
</p>


<h3>Usage</h3>

<pre>
rc(formula, lambda = NULL)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>formula</code></td>
<td>
a model formula to specify the explanatory variable and the subject grouping factor e.g. <code>formula=~x1|Subjects</code> will fit 
random constant and slopes for x1 for each level of Subjects  </td></tr>
<tr valign="top"><td><code>lambda</code></td>
<td>
a matrix specifying the variance-covariance matrix for the random coefficients e.g. <code>lambda=diag{2,5}</code> </td></tr>
</table>

<h3>Details</h3>

<p>
This is an experimental function and it is likely to change in the near future.
For a chosen fixed variance-covariance matrix for the random coefficients, this function finds the MAP estimates for the constant and slope random effects for the different subjects
</p>


<h3>Value</h3>

<p>
The variables in the left side of the formula are  returned with class "smooth", and  attribute named "call" which is to be evaluated 
in the backfitting  <code>additive.fit()</code>  called by <code>gamlss()</code></p>

<h3>Warning</h3>

<p>
This is experimental
</p>


<h3>Note</h3>




<h3>Author(s)</h3>

<p>
Mikis Stasinopoulos <a href="mailto:d.stasinopoulos@londonmet.ac.uk">d.stasinopoulos@londonmet.ac.uk</a>, Bob Rigby <a href="mailto:r.rigby@londonmet.ac.uk">r.rigby@londonmet.ac.uk</a>
</p>


<h3>References</h3>

<p>
Rigby, R. A. and  Stasinopoulos D. M. (2005). Generalized additive models for location, scale and shape,(with discussion), 
<EM>Appl. Statist.</EM>, <B>54</B>, part 3, pp 507-554.
</p>
<p>
Stasinopoulos D. M., Rigby R.A. and Akantziliotou C. (2006) Instructions on how to use the GAMLSS package in R.
Accompanying documentation in the current GAMLSS  help files, (see also  <a href="http://www.gamlss.com/">http://www.gamlss.com/</a>)
</p>
<p>
Stasinopoulos D. M. Rigby R.A. (2007) Generalized additive models for location scale and shape (GAMLSS) in R.
<EM>Journal of Statistical Software</EM>, Vol. <B>23</B>, Issue 7, Dec 2007, <a href="http://www.jstatsoft.org/v23/i07">http://www.jstatsoft.org/v23/i07</a>.
.
</p>


<h3>See Also</h3>

<p>
<code><a href="random.html">random</a></code>, <code><a href="ra.html">ra</a></code>, <code><a href="gamlss.html">gamlss</a></code>
</p>


<h3>Examples</h3>

<pre>
</pre>



<hr><div align="center">[Package <em>gamlss</em> version 1.7-9 <a href="00Index.html">Index]</a></div>

</body></html>
